import {Base} from '../../utils/base.js';

class Home extends Base{

  constructor(){
     super();
  }

  getBannerData(id,callback){
      var params = {
        url:'banner/'+id,
        sCallback:function(res){
          callback && callback(res);
        }
      };
      this.request(params);
  }

  getThemeData(callback){
    var params = {
      url:'theme?ids=1,2,3',
      sCallback:function(res){
        callback && callback(res);
      }
    }
    this.request(params);
  }

  getProductsData(callback) {
    var params = {
      url: 'product/recent',
      sCallback: function (res) {
        callback && callback(res);
      }
    }
    this.request(params);
  }

}

export {Home};